import request from '@/utils/request'

export function activityList(data) {
  return request({
    url: '/activity',
    method: 'get',
    data
  })
}

export function activityPost(data) {
  return request({
    url: '/activity',
    method: 'post',
    data
  })
}

export function activityPatch(data) {
  return request({
    url: `/activity/${data.id}`,
    method: 'patch',
    data
  })
}
